package designmode.Proxy.staticproxy;

public class TaoBao implements IProxy {
    IProxy proxy;

    public TaoBao(IProxy proxy) {
        this.proxy = proxy;
    }

    @Override
    public void buy() {
        System.out.println("打开淘宝");
        proxy.buy();
    }
}
